<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/pages/common/taglib.jsp"%>
<%@page import="com.gfa4j.resource.ResourceManagerServer"%>
<%@page import="com.wef.common.util.CommonMessageDomain"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
		<%@include file="/styles/css_lib.jsp"%>
		<%@include file="/scripts/widgets/jquery-ui/css_lib.jsp"%>
		<%@include file="/scripts/widgets/jqgrid/css_lib.jsp"%>
		<link rel="stylesheet" type="text/css" href="${ctx}/pages/demo/demo.css" />		
		
		<%@include file="/pages/common/js_global.jsp"%>
		<%@include file="/scripts/sdk/js_lib.jsp"%>
		<%@include file="/scripts/config/js_lib.jsp" %>
		<%@include file="/scripts/utils/js_lib.jsp"%>
		<%@include file="/scripts/i18n/js_lib.jsp"%>
		<%@include file="/scripts/format/js_lib.jsp"%>
		<%@include file="/scripts/validate/js_lib.jsp"%>
		<%@include file="/scripts/widgets/jquery-ui/js_lib.jsp"%>
		<%@include file="/scripts/widgets/jqgrid/js_lib.jsp"%>
		<%@include file="/scripts/widgets/page-custom/js_lib.jsp"%>
		<%@include file="/scripts/widgets/datePicker/js_lib.jsp"%>
		<script type="text/javascript" src="${ctx}/pages/demo/demo.js"></script>
		<script type="text/javascript" src="${ctx}/pages/demo/components/jq_utils.js"></script>
</head>
<body class="body">
<div id="Content_Show">
	<div class="Desc">
		功能:获取页面长宽,如下: (<a href="#" id="aDiv1">获取长度源码</a>)&nbsp;(<a href="#" id="aDiv2">获取宽度源码</a>)
	</div>
	<div id="div1" style="display: none;">
		var width = $.getPageWidth();
		$.ui.dialog4Prompt(width);
	</div>
	<div id="div2" style="display: none;">
		var height = $.getPageHeight();
		$.ui.dialog4Prompt(height);		
	</div>
	<div class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active">
		<ul class="button_box">
			<li>
				<k:button styleId="btnGetPageWidth" text="demo.Jqutils.getPageWidth" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"/>
			</li>
			<li>
				<k:button styleId="btnGetPageHeight" text="demo.Jqutils.getPageHeight" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"/>
			</li>
		</ul>
	</div>
	<div class="Desc">
		功能:将对象转成JSONString,如下: (<a href="#" id="aDiv3">源码</a>)
	</div>
	<div id="div3" style="display: none;">
		var myDate = new Date();</br>
		myDate.setFullYear(2012,3,13);</br>
		var student = {studentNum:"001",studentName:"涛哥",birthday:myDate,address:"福建厦门",telphone:"1234556",email:"xxx@sina.com",gender:"true",idCard:"67467467467467",remark:"学生备注"};</br>		
		var string = $.objectToJSONString(student)
	</div>
	<div class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active">
		<ul class="button_box">
			<li>
				<k:button styleId="btnGetJSONString" text="demo.Jqutils.getJSONString" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"/>
			</li>
			<li style="width:100%;">
				<div id="divFormObjJsonString"></div>
			</li>
		</ul>
	</div>
	<div class="Desc">
		功能:获取查询字段值,如下: (<a href="#" id="aDiv4">源码</a>)
	</div>
	<div id="div4" style="display: none;">
		var field = $.getQueryString("studentName");			
	</div>
	<div class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active">
		<ul class="button_box">
			<li>
				<k:button styleId="btnGetQueryString" text="demo.Jqutils.getQuertyString" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"/>
			</li>
		</ul>
	</div>
	<div class="Desc">
		功能:转义符转换,如下: (<a href="#" id="aDiv5">源码</a>)&nbsp;(<a href="#" id="aDiv6">源码</a>)
	</div>
	<div id="div5" style="display: none;">
		var htmlDecode = $('#editHtmlDecode').val();</br>
		var decode = $.htmlDecode(htmlDecode);</br>
		$.ui.dialog4Prompt(decode);			
	</div>
	<div id="div6" style="display: none;">
		var htmlEncode = $('#editHtmlEncode').val();</br>
		var encode = $.htmlEncode(htmlEncode);</br>
		$.ui.dialog4Prompt(encode);			
	</div>
	<div class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active">
		<ul id="editCode" allowChange="true" class="edit_box">	
			<li>
				<k:label text="demo.Jqutils.htmlDncode" allowBlank="false"/>
				<k:text property="htmlDecode" styleId="editHtmlDecode" styleClass="text"/>
			</li>
			<li>
				<k:label text="demo.Jqutils.htmlEncode" allowBlank="false"/>
				<k:text property="htmlEncode" styleId="editHtmlEncode" styleClass="text"/>
			</li>
	</div>
	<div class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active">
		<ul class="button_box">
			<li>
				<k:button styleId="btnHtmlDecode" text="demo.Jqutils.getHtmlDecode" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"/>
			</li>
			<li>
				<k:button styleId="btnHtmlEncode" text="demo.Jqutils.getHtmlEncode" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"/>
			</li>
		</ul>
	</div>
</div>
</body>
</html>